<template>
  <div>
       <!-- 导航按钮 -->
    <div class="navs">
      <router-link tag="div" class="item" to="/index/recommend">
        <span>推荐</span>
      </router-link>

      <router-link tag="div" class="item" to="/index/ranking">
        <span>排行榜</span>
      </router-link>

      <router-link tag="div" class="item" to="/index/singer">
        <span>歌手</span>
      </router-link>
    </div>
  </div>
</template>

<script>
export default {

}
</script>

<style lang="less">

.navs {
  height: 40px;
  line-height: 40px;
  display: flex;
  background-color: #d44439;
  color: #fff;
  .item {
    flex: 1;
    text-align: center;
    font-size: 14px;
    span {
      display: inline-block;
      height: 21px;
      line-height: 21px;
      border-bottom: 1px solid transparent;
    }
    &.router-link-active span {
      border-color: #fff;
      font-weight: bold;
    }
  }
}

</style>